{% extends "base.html" %}
{% block title %}Flasky - {{ user.username }}{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>{{ user.username }}</h1>
    {% if user.username or user.location %}
    <p>
        {% if user.name %}{{ user.name }}{% endif %}
        {% if user.location %}
            From <a href="https://map.baidu.com/poi/{{ user.location }}">
                {{ user.location }}
            </a>
        {% endif %}
    </p>
    {% endif %}
    <p>
        Member since {{ user.member_since }}.
        Last seen {{ user.last_seen }}.
    </p>
        {% if user == current_user %}
            <a class="btn btn-default" href="{{ url_for('main.edit_profile') }}">
                编辑个人信息
            </a>
        {% endif %}
</div>

{% endblock %}